Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic command line switch preprocessor for Cobalt #4930

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

arjungm
Copy link
Contributor

@arjungm arjungm commented Feb 20, 2025

b/397982418

@arjungm arjungm requested review from yell0wd0g, TyHolc, kaidokert, y4vor and andrewsavage1 and removed request for TyHolc February 24, 2025 21:46
@arjungm arjungm marked this pull request as ready for review February 24, 2025 21:48
@arjungm arjungm force-pushed the arjun-rework-cobalt-launch-arguments branch from b84967e to 25fa83f Compare February 24, 2025 23:21
{switches::kRemoteAllowOrigins, "http://localhost:9222"},
});

class CommandLinePreprocessor {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we move this class in a separate file and add a unit test?

});

// Switches with parameters. May require special handling with passed in values.
const auto kCobaltParamSwitches = base::CommandLine::SwitchMap({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt this is trivially destructible go/cstyle#Static_and_Global_Variables

// This flag is added specifically for m114 and should be removed after
// rebasing to m120+
#if BUILDFLAG(IS_ANDROID)
switches::kUserLevelMemoryPressureSignalParams,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these flags used on Android? I thought those flags were in CobaltActivity.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants